<?php
class BaseEvent{
	private $_type;
	/**
	 *
	 * @var BaseController
	 */
	public $target;
	
	public function __construct($type, $target=null){
		$this->_type = $type;
		$this->target = $target;
	}
	
	public function __toString(){
		return '';
	}
	
	public function __get($name){
		if(@property_exists($this, "_".$name)){
			return $this->{"_".$name};
		}else{
			return null;
		}
	}
	
	const ADMIN_LOG = 'admin_log';
}